package com.cn.ryc.mapper;

import com.cn.ryc.model.AlarmLevel;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface AlarmLevelMapper {

    @Select("SELECT * FROM alarm_levels")
    List<AlarmLevel> findAll();

    @Select("SELECT name FROM alarm_levels")
    List<String> findAllNames();
} 